const Merge = require('webpack-merge');
const CommonConfig = require('./webpack.common.js');
const webpack = require('webpack');

module.exports = Merge(CommonConfig, {
    devtool: 'source-map',//远程调试，这个必须使用source-map

    //http://localhost:7777/webpack-dev-server,可以看到开发者服务器中的文件
    devServer: {
        port: 7777,
        host: 'localhost',
        contentBase: '../dist',
        hot: true
    },

    plugins:[
        new webpack.HotModuleReplacementPlugin()
    ]
})